import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/iconfont/iconfont.css'
import '@/assets/scss/index.scss'
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import style
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

import http from '@/utils/httpRequest'
Vue.prototype.$http = http

import Topbar from '@/components/common/Topbar.vue'
import Navbar from '@/components/common/Navbar.vue'
Vue.component('topbar', Topbar)
Vue.component('navbar', Navbar)
import Card from '@/components/common/Card.vue'
import ListCard from '@/components/common/ListCard.vue'
Vue.component('m-card', Card)
Vue.component('m-list-card', ListCard)
import Divider from '@/components/common/Divider.vue'
Vue.component('divider', Divider)

// 生产环境下不启用vue提示报错信息
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
